<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>展开运算符求最大值和最小值</title>
</head>
<body>
  <script>
     const arr=[12,34,1,2,3,45,67,0]
     console.log(Math.max(...arr))
     console.log(Math.min(...arr))
  </script>
</body>
</html>